package cn.zzuli.springcloud.service;

import cn.zzuli.commons.entity.CommonResult;
import cn.zzuli.commons.entity.Payment;
import org.springframework.stereotype.Component;

/**
 * @Date: 2020/12/26 14:34
 * @Author: 绯色下午茶
 * @Description:
 */
@Component
public class PaymentFallbackService implements PaymentService {
    @Override
    public CommonResult<Payment> paymentSQL(long id) {
        return new CommonResult<>(4441,"服务降级返回，--PaymentFallbackService",new Payment(id,"errorSerial") );
    }
}
